package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.OrderFirstBuy;
import com.sc.nft.mapper.OrderFirstBuyMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 订单优先购明细表(sc_order_first_buy)数据DAO
 *
 * @author kancy
 * @since 2022-08-05 00:11:39
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class OrderFirstBuyDao extends ServiceImpl<OrderFirstBuyMapper, OrderFirstBuy> {


    public List<OrderFirstBuy> getByOrderId(Long orderId){
        LambdaQueryWrapper<OrderFirstBuy> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(OrderFirstBuy::getOrderId,orderId);
        return list(wrapper);
    }
}